package pl.edu.agh.anomalyids.lerad.rule.util;

import java.util.Comparator;

import pl.edu.agh.anomalyids.lerad.rule.Rule;

public class RuleBeliefComparator implements Comparator<Rule> {

	@Override
	public int compare(Rule o1, Rule o2) {
		return (o1.getBelief() > o2 .getBelief()) ? -1 : (o1.getBelief() < o2.getBelief() ? 1 : 0);
	}
}
